package com.ml.mall.bean.req.remark;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @description 通用备注表
 * @author yx
 * @date 2021/10/15
 * @version 1.0
*/
@Data
@ApiModel("通用备注表")
public class RemarkNewDto {
    @ApiModelProperty("备注的目标对象id")
    @NotNull(message = "备注的目标对象id不可为空")
    private Long target;

    @ApiModelProperty("备注内容")
    @NotBlank(message = "备注内容不可为空")
    private String remark;

    @ApiModelProperty("备注类型 1.订单备注（admin）")
    @NotNull(message  = "备注类型不可为空")
    private Integer type;
}
